﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace AppDesign.Models.ManageType
{
    public class OutsideRelation
    {
        [Key, Column(Order = 0)]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.None)]
        public Guid UniqueId { get; set; }

        [ForeignKey("AppId")]
        public AppTypes AppTypes { get; set; }
        [Key, Column(Order = 1)]
        public Guid AppId { get; set; }

        [ForeignKey("DomainId")]
        public DomainTypes DomainTypes { get; set; }
        [Key, Column(Order = 2)]
        public Guid DomainId { get; set; }

        public string PropertyName { get; set; }

        public string RelationType { get; set; }

        public string AccMod { get; set; }

        public string DataAnnoAttribute { get; set; }
    }
}